<?php 
    require_once './config/config.php';
    $connection = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS) or die(mysql_error());
    mysql_select_db(DB_NAME, $connection); 

    
    
$query = "SELECT * FROM pages";

$data = mysql_query($query, $connection);
while ($row = mysql_fetch_assoc($data)) {   

?>
<table border="2">
    <tr>
        <td> pid </td>
        <td> id </td>
        <td> name </td>
        <td> username </td>
        <td> phone </td>
        <td> likes </td>
     </tr>
     
     <tr>
         <td><?php echo $row["pid"]?></td>
         <td><?php echo $row["id"]?></td>
         <td><?php echo $row["name"]?></td>
         <td><?php echo $row["username"]?></td>
         <td><?php echo $row["phone"]?></td>
         <td><?php echo $row["likes"]?></td>
     </tr>
    
</table>
<?php } ?>
?>